﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ParboiledSharp.lang.roboline.utils
{
    class CompareUtils
    {
        /// <summary>
        /// if b1==b2, return 0 
        /// if b1=false and b2=true returns -1
        /// if b1=true and b2=false returns 1
        /// </summary>
        public static int CompareBoolean(bool b1, bool b2)
        {
            if (b1 == b2) return 0;
            if (b1 == false && b2 == true) return -1;
            if (b2 == false && b1 == true) return 1;
            return 0;
        }
    }
}
